home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / X11 / xprop.z / xprop
Encoding:
Text File  |  2002-10-03  |  18.9 KB  |  397 lines

  1.  
  2.  
  3.  
  4.      XXXXPPPPRRRROOOOPPPP((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))            XXXXPPPPRRRROOOOPPPP((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           xprop - property displayer for X
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           xxxxpppprrrroooopppp [-help] [-grammar] [-id _i_d] [-root] [-name _n_a_m_e] [-
  13.           frame] [-font _f_o_n_t] [-display _d_i_s_p_l_a_y] [-len _n] [-notype]
  14.           [-fs _f_i_l_e] [-remove _p_r_o_p_e_r_t_y-_n_a_m_e] [-spy] [-f _a_t_o_m _f_o_r_m_a_t
  15.           [_d_f_o_r_m_a_t]]* [-exists] [_f_o_r_m_a_t [_d_f_o_r_m_a_t] _a_t_o_m]*
  16.  
  17.      SSSSUUUUMMMMMMMMAAAARRRRYYYY
  18.           The _x_p_r_o_p utility is for displaying window and font
  19.           properties in an X server.  One window or font is selected
  20.           using the command line arguments or possibly in the case of
  21.           a window, by clicking on the desired window.  A list of
  22.           properties is then given, possibly with formatting
  23.           information.
  24.  
  25.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  26.           ----hhhheeeellllpppp   Print out a summary of command line options.
  27.  
  28.           ----ggggrrrraaaammmmmmmmaaaarrrr
  29.                   Print out a detailed grammar for all command line
  30.                   options.
  31.  
  32.           ----iiiidddd _i_d  This argument allows the user to select window _i_d on
  33.                   the command line rather than using the pointer to
  34.                   select the target window.  This is very useful in
  35.                   debugging X applications where the target window is
  36.                   not mapped to the screen or where the use of the
  37.                   pointer might be impossible or interfere with the
  38.                   application.
  39.  
  40.           ----nnnnaaaammmmeeee _n_a_m_e
  41.                   This argument allows the user to specify that the
  42.                   window named _n_a_m_e is the target window on the
  43.                   command line rather than using the pointer to select
  44.                   the target window.
  45.  
  46.           ----ffffoooonnnntttt _f_o_n_t
  47.                   This argument allows the user to specify that the
  48.                   properties of font _f_o_n_t should be displayed.
  49.  
  50.           ----rrrrooooooootttt   This argument specifies that X's root window is the
  51.                   target window.  This is useful in situations where
  52.                   the root window is completely obscured.
  53.  
  54.           ----ddddiiiissssppppllllaaaayyyy _d_i_s_p_l_a_y
  55.                   This argument allows you to specify the server to
  56.                   connect to; see _X(_1).
  57.  
  58.           ----lllleeeennnn _n  Specifies that at most _n bytes of any property
  59.                   should be read or displayed.
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXPPPPRRRROOOOPPPP((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))            XXXXPPPPRRRROOOOPPPP((((1111))))
  71.  
  72.  
  73.  
  74.           ----nnnnoooottttyyyyppppeeee Specifies that the type of each property should not
  75.                   be displayed.
  76.  
  77.           ----ffffssss _f_i_l_e
  78.                   Specifies that file _f_i_l_e should be used as a source
  79.                   of more formats for properties.
  80.  
  81.           ----ffffrrrraaaammmmeeee  Specifies that when selecting a window by hand (i.e.
  82.                   if none of ----nnnnaaaammmmeeee, ----rrrrooooooootttt, or ----iiiidddd are given), look at
  83.                   the window manager frame (if any) instead of looking
  84.                   for the client window.
  85.  
  86.           ----rrrreeeemmmmoooovvvveeee _p_r_o_p_e_r_t_y-_n_a_m_e
  87.                   Specifies the name of a property to be removed from
  88.                   the indicated window.
  89.  
  90.           ----ssssppppyyyy    Examine window properties forever, looking for
  91.                   property change events.
  92.  
  93.           ----ffff _n_a_m_e _f_o_r_m_a_t [[[[_d_f_o_r_m_a_t]]]]
  94.                   Specifies that the _f_o_r_m_a_t for _n_a_m_e should be _f_o_r_m_a_t
  95.                   and that the _d_f_o_r_m_a_t for _n_a_m_e should be _d_f_o_r_m_a_t.  If
  96.                   _d_f_o_r_m_a_t is missing, " = $0+\n" is assumed.
  97.  
  98.           ----eeeexxxxiiiissssttttssss Monitor property change events, exit when the
  99.                   specified properties go away.
  100.  
  101.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  102.           For each of these properties, its value on the selected
  103.           window or font is printed using the supplied formatting
  104.           information if any.  If no formatting information is
  105.           supplied, internal defaults are used.  If a property is not
  106.           defined on the selected window or font, "not defined" is
  107.           printed as the value for that property.  If no property list
  108.           is given, all the properties possessed by the selected
  109.           window or font are printed.
  110.  
  111.           A window may be selected in one of four ways.  First, if the
  112.           desired window is the root window, the -root argument may be
  113.           used.  If the desired window is not the root window, it may
  114.           be selected in two ways on the command line, either by id
  115.           number such as might be obtained from _x_w_i_n_i_n_f_o, or by name
  116.           if the window possesses a name.  The -id argument selects a
  117.           window by id number in either decimal or hex (must start
  118.           with 0x) while the -name argument selects a window by name.
  119.  
  120.           The last way to select a window does not involve the command
  121.           line at all.  If none of -font, -id, -name, and -root are
  122.           specified, a crosshairs cursor is displayed and the user is
  123.           allowed to choose any visible window by pressing any pointer
  124.           button in the desired window.  If it is desired to display
  125.           properties of a font as opposed to a window, the -font
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXPPPPRRRROOOOPPPP((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))            XXXXPPPPRRRROOOOPPPP((((1111))))
  137.  
  138.  
  139.  
  140.           argument must be used.
  141.  
  142.           Other than the above four arguments and the -help argument
  143.           for obtaining help, and the -grammar argument for listing
  144.           the full grammar for the command line, all the other command
  145.           line arguments are used in specifying both the format of the
  146.           properties to be displayed and how to display them.  The
  147.           -len _n argument specifies that at most _n bytes of any given
  148.           property will be read and displayed.  This is useful for
  149.           example when displaying the cut buffer on the root window
  150.           which could run to several pages if displayed in full.
  151.  
  152.           Normally each property name is displayed by printing first
  153.           the property name then its type (if it has one) in
  154.           parentheses followed by its value.  The -notype argument
  155.           specifies that property types should not be displayed.  The
  156.           -fs argument is used to specify a file containing a list of
  157.           formats for properties while the -f argument is used to
  158.           specify the format for one property.
  159.  
  160.           The formatting information for a property actually consists
  161.           of two parts, a _f_o_r_m_a_t and a _d_f_o_r_m_a_t.  The _f_o_r_m_a_t specifies
  162.           the actual formatting of the property (i.e., is it made up
  163.           of words, bytes, or longs?, etc.) while the _d_f_o_r_m_a_t
  164.           specifies how the property should be displayed.
  165.  
  166.           The following paragraphs describe how to construct _f_o_r_m_a_ts
  167.           and _d_f_o_r_m_a_ts.  However, for the vast majority of users and
  168.           uses, this should not be necessary as the built in defaults
  169.           contain the _f_o_r_m_a_ts and _d_f_o_r_m_a_ts necessary to display all
  170.           the standard properties.  It should only be necessary to
  171.           specify _f_o_r_m_a_ts and _d_f_o_r_m_a_ts if a new property is being
  172.           dealt with or the user dislikes the standard display format.
  173.           New users especially are encouraged to skip this part.
  174.  
  175.           A _f_o_r_m_a_t consists of one of 0, 8, 16, or 32 followed by a
  176.           sequence of one or more format characters.  The 0, 8, 16, or
  177.           32 specifies how many bits per field there are in the
  178.           property.  Zero is a special case meaning use the field size
  179.           information associated with the property itself.  (This is
  180.           only needed for special cases like type INTEGER which is
  181.           actually three different types depending on the size of the
  182.           fields of the property)
  183.  
  184.           A value of 8 means that the property is a sequence of bytes
  185.           while a value of 16 would mean that the property is a
  186.           sequence of words.  The difference between these two lies in
  187.           the fact that the sequence of words will be byte swapped
  188.           while the sequence of bytes will not be when read by a
  189.           machine of the opposite byte order of the machine that
  190.           originally wrote the property.  For more information on how
  191.           properties are formatted and stored, consult the Xlib
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 10/3/02)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      XXXXPPPPRRRROOOOPPPP((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))            XXXXPPPPRRRROOOOPPPP((((1111))))
  203.  
  204.  
  205.  
  206.           manual.
  207.  
  208.           Once the size of the fields has been specified, it is
  209.           necessary to specify the type of each field (i.e., is it an
  210.           integer, a string, an atom, or what?)  This is done using
  211.           one format character per field.  If there are more fields in
  212.           the property than format characters supplied, the last
  213.           character will be repeated as many times as necessary for
  214.           the extra fields.  The format characters and their meaning
  215.           are as follows:
  216.  
  217.           a    The field holds an atom number.  A field of this type
  218.                should be of size 32.
  219.  
  220.           b    The field is an boolean.  A 0 means false while
  221.                anything else means true.
  222.  
  223.           c    The field is an unsigned number, a cardinal.
  224.  
  225.           i    The field is a signed integer.
  226.  
  227.           m    The field is a set of bit flags, 1 meaning on.
  228.  
  229.           s    This field and the next ones until either a 0 or the
  230.                end of the property represent a sequence of bytes.
  231.                This format character is only usable with a field size
  232.                of 8 and is most often used to represent a string.
  233.  
  234.           x    The field is a hex number (like 'c' but displayed in
  235.                hex - most useful for displaying window ids and the
  236.                like)
  237.  
  238.           An example _f_o_r_m_a_t is 32ica which is the format for a
  239.           property of three fields of 32 bits each, the first holding
  240.           a signed integer, the second an unsigned integer, and the
  241.           third an atom.
  242.  
  243.           The format of a _d_f_o_r_m_a_t unlike that of a _f_o_r_m_a_t is not so
  244.           rigid.  The only limitations on a _d_f_o_r_m_a_t is that one may
  245.           not start with a letter or a dash.  This is so that it can
  246.           be distinguished from a property name or an argument.  A
  247.           _d_f_o_r_m_a_t is a text string containing special characters
  248.           instructing that various fields be printed at various points
  249.           in a manner similar to the formatting string used by printf.
  250.           For example, the _d_f_o_r_m_a_t " is ( $0, $1 \)\n" would render
  251.           the POINT 3, -4 which has a _f_o_r_m_a_t of 32ii as " is ( 3, -4
  252.           )\n".
  253.  
  254.           Any character other than a $, ?, \, or a ( in a _d_f_o_r_m_a_t
  255.           prints as itself.  To print out one of $, ?, \, or ( precede
  256.           it by a \.  For example, to print out a $, use \$.  Several
  257.           special backslash sequences are provided as shortcuts.  \n
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 10/3/02)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      XXXXPPPPRRRROOOOPPPP((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))            XXXXPPPPRRRROOOOPPPP((((1111))))
  269.  
  270.  
  271.  
  272.           will cause a newline to be displayed while \t will cause a
  273.           tab to be displayed.  \_o where _o is an octal number will
  274.           display character number _o.
  275.  
  276.           A $ followed by a number _n causes field number _n to be
  277.           displayed.  The format of the displayed field depends on the
  278.           formatting character used to describe it in the
  279.           corresponding _f_o_r_m_a_t.  I.e., if a cardinal is described by
  280.           'c' it will print in decimal while if it is described by a
  281.           'x' it is displayed in hex.
  282.  
  283.           If the field is not present in the property (this is
  284.           possible with some properties), <field not available> is
  285.           displayed instead.  $_n+ will display field number _n then a
  286.           comma then field number _n+1 then another comma then ...
  287.           until the last field defined.  If field _n is not defined,
  288.           nothing is displayed.  This is useful for a property that is
  289.           a list of values.
  290.  
  291.           A ? is used to start a conditional expression, a kind of
  292.           if-then statement.  ?_e_x_p(_t_e_x_t) will display _t_e_x_t if and only
  293.           if _e_x_p evaluates to non-zero.  This is useful for two
  294.           things.  First, it allows fields to be displayed if and only
  295.           if a flag is set. And second, it allows a value such as a
  296.           state number to be displayed as a name rather than as just a
  297.           number.  The syntax of _e_x_p is as follows:
  298.  
  299.           _e_x_p  ::= _t_e_r_m | _t_e_r_m=_e_x_p | !_e_x_p
  300.  
  301.           _t_e_r_m ::= _n | $_n | m_n
  302.  
  303.           The ! operator is a logical ``not'', changing 0 to 1 and any
  304.           non-zero value to 0.  = is an equality operator.  Note that
  305.           internally all expressions are evaluated as 32 bit numbers
  306.           so -1 is not equal to 65535.  = returns 1 if the two values
  307.           are equal and 0 if not.  _n represents the constant value _n
  308.           while $_n represents the value of field number _n.  m_n is 1 if
  309.           flag number _n in the first field having format character 'm'
  310.           in the corresponding _f_o_r_m_a_t is 1, 0 otherwise.
  311.  
  312.           Examples: ?m3(count: $3\n) displays field 3 with a label of
  313.           count if and only if flag number 3 (count starts at 0!) is
  314.           on.  ?$2=0(True)?!$2=0(False) displays the inverted value of
  315.           field 2 as a boolean.
  316.  
  317.           In order to display a property, _x_p_r_o_p needs both a _f_o_r_m_a_t
  318.           and a _d_f_o_r_m_a_t.  Before _x_p_r_o_p uses its default values of a
  319.           _f_o_r_m_a_t of 32x and a _d_f_o_r_m_a_t of " = { $0+ }\n", it searches
  320.           several places in an attempt to find more specific formats.
  321.           First, a search is made using the name of the property.  If
  322.           this fails, a search is made using the type of the property.
  323.           This allows type STRING to be defined with one set of
  324.  
  325.  
  326.  
  327.      Page 5                                          (printed 10/3/02)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      XXXXPPPPRRRROOOOPPPP((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))            XXXXPPPPRRRROOOOPPPP((((1111))))
  335.  
  336.  
  337.  
  338.           formats while allowing property WM_NAME which is of type
  339.           STRING to be defined with a different format.  In this way,
  340.           the display formats for a given type can be overridden for
  341.           specific properties.
  342.  
  343.           The locations searched are in order: the format if any
  344.           specified with the property name (as in 8x WM_NAME), the
  345.           formats defined by -f options in last to first order, the
  346.           contents of the file specified by the -fs option if any, the
  347.           contents of the file specified by the environmental variable
  348.           XPROPFORMATS if any, and finally _x_p_r_o_p's built in file of
  349.           formats.
  350.  
  351.           The format of the files referred to by the -fs argument and
  352.           the XPROPFORMATS variable is one or more lines of the
  353.           following form:
  354.  
  355.           _n_a_m_e _f_o_r_m_a_t [_d_f_o_r_m_a_t]
  356.  
  357.           Where _n_a_m_e is either the name of a property or the name of a
  358.           type, _f_o_r_m_a_t is the _f_o_r_m_a_t to be used with _n_a_m_e and _d_f_o_r_m_a_t
  359.           is the _d_f_o_r_m_a_t to be used with _n_a_m_e.  If _d_f_o_r_m_a_t is not
  360.           present, " = $0+\n" is assumed.
  361.  
  362.      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  363.           To display the name of the root window: _x_p_r_o_p -root WM_NAME
  364.  
  365.           To display the window manager hints for the clock: _x_p_r_o_p
  366.           -name xclock WM_HINTS
  367.  
  368.           To display the start of the cut buffer: _x_p_r_o_p -root -len 100
  369.           CUT_BUFFER0
  370.  
  371.           To display the point size of the fixed font: _x_p_r_o_p -font
  372.           fixed POINT_SIZE
  373.  
  374.           To display all the properties of window # 0x200007: _x_p_r_o_p
  375.           -id 0x200007
  376.  
  377.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  378.           DDDDIIIISSSSPPPPLLLLAAAAYYYY To get default display.
  379.  
  380.           XXXXPPPPRRRROOOOPPPPFFFFOOOORRRRMMMMAAAATTTTSSSS
  381.                   Specifies the name of a file from which additional
  382.                   formats are to be obtained.
  383.  
  384.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  385.           X(1), xwininfo(1)
  386.  
  387.      AAAAUUUUTTTTHHHHOOOORRRR
  388.           Mark Lillibridge, MIT Project Athena
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                                          (printed 10/3/02)
  394.  
  395.  
  396.  
  397.